package recursive;

import javax.swing.*;
import java.awt.*;

public class FractalTreeTest {
    public static void main(String[] args) {
        JFrame frame = new JFrame();
        frame.setTitle("递归绘制分行树");
        frame.add(BorderLayout.CENTER, new FractalTree(400, 5));
        frame.setLocationRelativeTo(null);
        frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
        frame.setSize(600, 600);
        frame.setLocationRelativeTo(null);
        frame.setVisible(true);
    }
}
